package com.izliang.goods.serviceImp;

import model.Goods;
import org.apache.dubbo.config.annotation.Service;
import service.GoodsService;

import java.util.UUID;

@Service
public class GoodsServiceImp implements GoodsService {

    @Override
    public Goods findGoodsInfoById(int goodsId) {
        Goods goods = new Goods();
        goods.setGoodsTitle(UUID.randomUUID().toString());
        return goods;
    }

    @Override
    public void subGoodsStock() {
        System.out.println("商品减少库存");
    }
}
